home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Bus / S / S7P 3.6 Manual.sit / S7P 3.6 Manual.rsrc / TEXT_130.txt < prev    next >
Encoding:
Text File  |  1993-11-14  |  1.5 KB  |  33 lines

  1. Launch
  2.  
  3. Err:=Launch(Signature;Document Name)
  4.  
  5. This will launch the application associated with the signature (example: to launch Microsoft Word¬Æ, give it "MSWD"). If the document name is not an empty string, it will be opened when the application starts up. You can also use this to tell an application that's already running to open a document. This will work correctly for any application whether or not it supports AppleEvents.
  6.  
  7. IMPORTANT NOTE: An application launch doesn‚Äôt complete until the frontmost application calls GetNextEvent. Unfortunately, 4D¬Æ doesn‚Äôt do so while a procedure is running. System 7 Pack 3.5 now calls SystemTask and GetNextEvent until the launch completes.
  8.  
  9. LaunchBehind
  10.  
  11. Err:=LaunchBehind(Creator;Document)
  12.  
  13. Works exactly the same as Launch, except that the application won‚Äôt be brought to the front.
  14.  
  15. FinderOpen
  16.  
  17. Err := FinderOpen(Pathname)
  18.  
  19. Sends an Open Selection AppleEvent to the Finder, which simulates double-clicking a file. Can be used to launch an application, open a folder, open a document, or mount a file server by opening an alias to a remote volume.
  20.  
  21. PrintDoc
  22.  
  23. Err:=PrintDoc(Signature;Document Name)
  24.  
  25. This is similar to Launch, except that the document will be printed. Unlike Launch, you must give it a non-blank document name.
  26.  
  27. QuitApp
  28.  
  29. Err:=QuitApp(Signature)
  30.  
  31. This will tell the specified application to quit. In many cases the application will ask whether any files should be saved.  Some applications need to be brought to the front before quitting so they can display any alerts necessary.
  32.  
  33.